Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializing thread state when starting a new thread using generic thread function. #158

Closed
wants to merge 20 commits into from

Conversation

ab1aw
Copy link

@ab1aw ab1aw commented Feb 25, 2019

This is a user application to demonstrate how to implement and execute a generic thread function whose starting state can be modified by the parent thread. In this demonstration, the parent thread spawns three instances of the generic thread function as three separate threads. Each thread instance is given different starting state data. This allows a work-around for the missing capability in F9 to pass an argument to the arg parameter of a thread via the pager_start_thread() API.

This user application also demonstrates how threads might use the F9 IPC to communicate with each other.

ab1aw added 14 commits February 7, 2019 14:14
…in CygWin environment using 8.2018-q4-mafor ARM toolset.
…g the version 8-2018-q4-major ARM toolchain. Revert back to using the 4_8-2013q4-major ARM toolchain when building on Windows 10 w/ CygWin.
…rom https://raw.githubusercontent.com/benwei/f9-kernel plus modifications to achieve successful build. Execution is faulty; execution halts without displaying boot info.
…ping thread to pong thread. Both threads display current counter value.
 NICTA L4-embedded API
 from m
http://ertos.nicta.com.au/ Mational ICT Australia.
…sing kernel support for passing an argument to a thread function.
@ab1aw ab1aw closed this Feb 25, 2019
Copy link
Author

@ab1aw ab1aw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes from specified commit only.

@ab1aw ab1aw reopened this Feb 25, 2019
@ab1aw ab1aw marked this pull request as ready for review February 25, 2019 14:25
@ab1aw ab1aw closed this Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants